'''
Author: mypx
Date: 2025-10-21 15:28:53
LastEditTime: 2025-10-21 15:31:23
LastEditors: mypx mypx_coder@163.com
Description: 
'''
# 提示文本模块
from PyQt6.QtWidgets import QLabel
from PyQt6.QtCore import Qt

class PromptModule:
    """提示文本模块"""
    
    @staticmethod
    def create_prompt(prompt_text: str) -> QLabel:
        """创建提示文本标签"""
        label = QLabel(prompt_text)
        label.setAlignment(Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignVCenter)
        label.setWordWrap(True)
        return label
    
    @staticmethod
    def update_prompt(label: QLabel, new_text: str) -> None:
        """更新提示文本"""
        label.setText(new_text)